package com.xinqi.common.base.constants;

/**
 * @author linkai
 * @date 2022/11/25
 **/
public interface C {

    /**
     * 默认用户ID
     */
    long DEFAULT_USER_ID = 1;

    interface CacheKey {
        String USER_ACTIVITY_SET = "user:activity:set:%s";
    }

    interface HttpHeader {
        /**
         * TOKEN-ID
         */
        String XQ_AUTH_TOKEN_ID = "XQ-AUTH-TOKEN-ID";
        /**
         * 租户ID
         */
        String XQ_AUTH_TENANT_ID = "XQ-AUTH-TENANT-ID";
        /**
         * 用户ID
         */
        String XQ_AUTH_USER_ID = "XQ-AUTH-USER-ID";
        /**
         * 用户类型：0-普通用户；1-系统用户
         */
        String XQ_AUTH_USER_TYPE = "XQ-AUTH-USER-TYPE";
        /**
         * 用户名称
         */
        String XQ_AUTH_USER_NAME = "XQ-AUTH-USER-NAME";
        /**
         * 是否是管理员
         */
        String XQ_AUTH_IS_ADMIN = "XQ-AUTH-IS-ADMIN";
        /**
         * 登录来源：0-PC；1-Android；2-IOS；3-微信小程序；
         */
        String XQ_AUTH_LOGIN_SOURCE = "XQ-AUTH-LOGIN-SOURCE";
        /**
         * 用户TOKEN
         */
        String XQ_AUTH_TOKEN = "XQ-AUTH-TOKEN";
    }

    interface Num {
        Integer ZERO_INTEGER = 0;
        Long ZERO_LONG = 0L;
    }

    interface HttpStatus {
        /**
         * {@code 200 OK}.
         */
        int OK = 200;
        /**
         * {@code 400 Bad Request}.
         */
        int BAD_REQUEST = 400;
        /**
         * {@code 401 Unauthorized}.
         */
        int UNAUTHORIZED = 401;
        /**
         * {@code 402 Payment Required}.
         */
        int PAYMENT_REQUIRED = 402;
        /**
         * {@code 403 Forbidden}.
         */
        int FORBIDDEN = 403;
        /**
         * {@code 404 Not Found}.
         */
        int NOT_FOUND = 404;

        /**
         * {@code 405 Method Not Allowed}.
         */
        int METHOD_NOT_ALLOWED = 405;
        /**
         * {@code 406 Not Acceptable}.
         */
        int NOT_ACCEPTABLE = 406;
        /**
         * {@code 407 Proxy Authentication Required}.
         */
        int PROXY_AUTHENTICATION_REQUIRED = 407;
        /**
         * {@code 408 Request Timeout}.
         */
        int REQUEST_TIMEOUT = 408;
        /**
         * {@code 409 Conflict}.
         */
        int CONFLICT = 409;
        /**
         * {@code 410 Gone}.
         */
        int GONE = 410;
        /**
         * {@code 411 Length Required}.
         */
        int LENGTH_REQUIRED = 411;
        /**
         * {@code 414 URI Too Long}.
         */
        int URI_TOO_LONG = 414;
        /**
         * {@code 415 Unsupported Media Type}.
         */
        int UNSUPPORTED_MEDIA_TYPE = 415;
        /**
         * {@code 423 Locked}.
         */
        int LOCKED = 423;

        /**
         * {@code 425 NOT_DAT}.
         */
        int NOT_DATA = 425;

        /**
         * {@code 500 Internal Server Error}.
         */
        int INTERNAL_SERVER_ERROR = 500;
        /**
         * {@code 501 Not Implemented}.
         */
        int NOT_IMPLEMENTED = 501;
        /**
         * {@code 502 Bad Gateway}.
         */
        int BAD_GATEWAY = 502;
        /**
         * {@code 503 Service Unavailable}.
         */
        int SERVICE_UNAVAILABLE = 503;
        /**
         * {@code 504 Gateway Timeout}.
         */
        int GATEWAY_TIMEOUT = 504;
        /**
         * {@code 505 HTTP Version Not Supported}.
         */
        int HTTP_VERSION_NOT_SUPPORTED = 505;
        /**
         * {@code 506 Variant Also Negotiates}
         */
        int VARIANT_ALSO_NEGOTIATES = 506;
        /**
         * {@code 507 Insufficient Storage}
         */
        int INSUFFICIENT_STORAGE = 507;
        /**
         * {@code 508 Loop Detected}
         */
        int LOOP_DETECTED = 508;
        /**
         * {@code 509 Bandwidth Limit Exceeded}
         */
        int BANDWIDTH_LIMIT_EXCEEDED = 509;
        /**
         * {@code 510 Not Extended}
         */
        int NOT_EXTENDED = 510;
        /**
         * {@code 511 Network Authentication Required}.
         */
        int NETWORK_AUTHENTICATION_REQUIRED = 511;
    }
}
